package com.yonyou.isv.demo.openapi.api.enterprise;

import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataArrayResponse;
import com.yonyou.isv.demo.openapi.base.module.reponse.ApiDataResponse;
import com.yonyou.isv.demo.openapi.api.BaseOpenApi;
import com.yonyou.isv.demo.openapi.api.OpenApiURL;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 企业银行账户
 */
@Component
public class EnterCashApi extends BaseOpenApi {
    public List<Map<String,Object>> findByTime(HashMap<String, String> params)
    {
        ApiDataArrayResponse apiDataResponse = getForEntity(OpenApiURL.ENTERCASH_FINDBYTIME, params, ApiDataArrayResponse.class);
        return getData(apiDataResponse);
    }
    public Map<String,Object> list(Map<String,Object> params)
    {
        ApiDataResponse apiDataResponse = postForEntity(OpenApiURL.ENTERCASH_LIST, params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }
    public Map<String,Object> detail(Map<String,String> params)
    {
        ApiDataResponse apiDataResponse = getForEntity(OpenApiURL.ENTERCASH_DETAIL, params, ApiDataResponse.class);
        return getData(apiDataResponse);
    }

}
